package cc.yiueil.service.impl;

import cc.yiueil.entity.ProductEntity;
import cc.yiueil.service.ProductService;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public ProductEntity getProduct(Long id) {
        ProductEntity productEntity = new ProductEntity();
        productEntity.setId(id);
        productEntity.setName("苹果" + id);
        productEntity.setPrice(1000L);
        productEntity.setCreateTime(LocalDateTime.now());
        return productEntity;
    }
}
